package com.wyzz.hr.action;

import java.util.Date;

public class AssebleDeptListFactory {

	public AssebleDeptListFactory() {
	}

	public static AssembleDeptList creator(Date queryDate, String queryDeptId,
			Integer queryDepth) {
		AssembleDeptList as;
		if (queryDate == null)
			as = new AssembleCurrent();
		else
			as = new AssembleHist();
		as.setQueryDate(queryDate);
		as.setQueryDeptId(queryDeptId);
		as.setQueryDepth(queryDepth);
		return as;
	}
}
